part of YFree;

///获取屏幕尺寸
Size yScreenSize({BuildContext? context}) => MediaQuery.of(context ?? yPages.last.context).size;

///获取状态栏高度
double yStatubarHeight({BuildContext? context}) => MediaQuery.of(context ?? yPages.last.context).padding.top;

///获取底部安全区高度
double ySafeAreaBottomHeight({BuildContext? context}) => MediaQuery.of(context ?? yPages.last.context).padding.bottom;

///获取导航条高度
double yNavBarHeight() => kIsWeb ? 50 : (Platform.isAndroid ? 50 : 44);
